package java56_7.ex;

public class Calculator2 {
	private String brand = "卡西欧";

	// 除法
	public int divide(int a, int b) throws Exception, ArithmeticException {
		System.out.println(brand + "计算器开始计算" + a + "/" + b);
		int c = 0;
		try {
			c = a / b;
			return c;
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}
		// return c;//可以不要了
	}
}
